package com.ruoyi.system.domain.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.ruoyi.common.core.domain.CommonEntity;

/**
 * 测试对象Dto test
 *
 * @author ruoyi
 * @date 2024-09-04
 */
@ApiModel("测试Dto")
public class TestDto extends CommonEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 名字 */
    @ApiModelProperty(name = "名字")
    @Excel(name = "名字")
    private String name;

    /** 性别 */
    @ApiModelProperty(name = "性别")
    @Excel(name = "性别")
    private Long sex;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSex(Long sex)
    {
        this.sex = sex;
    }

    public Long getSex()
    {
        return sex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
